package com.zsl.picture;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Configuration;

/**
 * 打包war使用外置tomcat部署必须要这个启动类
 * @author zsl
 * @date 2022/1/19
 * @email 154777150@qq.com
 */
@Configuration
public class SpringBootStartApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder){
        return builder.sources(PictureApplication.class);
    }
}
